package com.shaonianyou.common;

import java.util.List;

import org.springframework.http.client.ClientHttpRequestFactory;
import org.springframework.http.converter.HttpMessageConverter;
import org.springframework.stereotype.Component;
import org.springframework.web.client.RestTemplate;

/**
 * 
 * @author Empty
 *
 */
@Component
public class HttpClient extends BaseClient {

	public HttpClient() {
		super();
	}

	/**
	 * Create a new instance of the {@link RestTemplate} based on the given
	 * {@link ClientHttpRequestFactory}.
	 * 
	 * @param requestFactory
	 *            HTTP request factory to use
	 * @see org.springframework.http.client.SimpleClientHttpRequestFactory
	 * @see org.springframework.http.client.HttpComponentsClientHttpRequestFactory
	 */
	public HttpClient(ClientHttpRequestFactory requestFactory) {
		super(requestFactory);
	}

	/**
	 * Create a new instance of the {@link RestTemplate} using the given list of
	 * {@link HttpMessageConverter} to use
	 * 
	 * @param messageConverters
	 *            the list of {@link HttpMessageConverter} to use
	 * @since 3.2.7
	 */
	public HttpClient(List<HttpMessageConverter<?>> messageConverters) {
		super(messageConverters);
	}

}
